xen: arm: make sure we stay within the memory bank during mm setup
authorIan Campbell <ian.campbell@citrix.com>
Mon, 16 Sep 2013 16:57:08 +0000 (17:57 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 27 Sep 2013 15:39:03 +0000 (16:39 +0100)
commit7b8fca21dfe5584ec8d4c83c24859b1306328c79
treeedb45a73eb4a246795e6ca2c415deaf839fe2632
parent5fbc4c343e52777e636439e2afcdfb3f100211c3
xen: arm: make sure we stay within the memory bank during mm setup

Otherwise if there is a module in another bank we can run off the end.

Rename *n to *end to make it clearer what is happening.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/setup.c